package com.eight.cloud.core.utils.quick;

import cn.hutool.core.util.ObjectUtil;

/**
 * @ClassName: GenericTypeChangeUtil
 * @Author: TXC
 * @Date: 2025-02-20 16:16
 **/
public class GenericTypeChangeUtil {
    @SuppressWarnings("unchecked")
    public static <T> T typeConversion(Object o, Class<?> clazz){
        if (ObjectUtil.isNotNull(o)) {
            return (T) clazz.cast(o);
        }
        return null;
    }
}
